package io.github.talelin.latticy.model;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableLogic;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.annotation.JsonIgnore;
import io.github.talelin.latticy.model.BaseModel;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.*;
import lombok.experimental.Accessors;
import org.checkerframework.common.reflection.qual.GetConstructor;

import java.util.Date;

/**
 * 上架表
 *
 * @author generator@wulongbo
 * @since 2022-06-29
 */
@Data
@TableName("t_put_away")
public class PutAwayDO extends BaseModel {

    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    /**
     * 上架编号
     */
    private String putAwayCode;

    /**
     * sku
     */
    private String sku;

    /**
     * 产品sku名称
     */
    private String skuName;

    /**
     * 箱号
     */
    private String packageNo;

    /**
     * 上架批次号
     */
    private String batchNo;


    /**
     * 入库单编号
     */
    private String inboundOrderNo;

    /**
     * 仓库ID
     */
    private String warehouseCode;

    /**
     * 客户代码
     */
    private String tenant;

    /**
     * 上架员
     */
    private String putAwayBy;


    /**
     * 备注
     */
    private String otherRemark;

    /**
     * 库位id
     */
    private Integer locationId;




    /**
     * 产品ID
     */
    private Long productId;

    /**
     * 上架数量
     */
    private Integer quantity;

    @JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss")
    private Date createTime;

    @JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss")
    private Date updateTime;

    @TableLogic
    private Date deleteTime;
}
